from django.conf.urls.defaults import patterns, include, url
from django.views.generic.simple import redirect_to

from console_app.views import home
from console_app.views import start_test
from console_app.views import upload_file
from console_app.views import set_url
from report_app.views import report

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'osim_site.views.home', name='home'),
    # url(r'^osim_site/', include('osim_site.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
	(r'^_ah/warmup$', 'djangoappengine.views.warmup'),
    (r'^osimtest/home/$', home),
    (r'^$', home),
	(r'^osimtest/$', redirect_to, {'url': '/osimtest/home'}),
    (r'^osimtest/execute/$', start_test),
    (r'^osimtest/upload/$', upload_file),
    (r'^osimtest/seturl', set_url),
    (r'^osimtest/report', report),
)
